package com.dv.driverless.domain;

import com.dv.common.annotation.Excel;
import com.dv.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 异常信息对象 info_exception
 *
 * @author ruoyi
 * @date 2023-04-06
 */
public class InfoException extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 事件类别 */
    @Excel(name = "事件类别")
    private String eventClass;

    /** 事件类型 */
    @Excel(name = "事件类型")
    private String eventType;

    /** 异常级别 */
    @Excel(name = "异常级别")
    private String warningLevel;

    /** 描述 */
    @Excel(name = "描述")
    private String warningLnfo;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setEventClass(String eventClass)
    {
        this.eventClass = eventClass;
    }

    public String getEventClass()
    {
        return eventClass;
    }
    public void setEventType(String eventType)
    {
        this.eventType = eventType;
    }

    public String getEventType()
    {
        return eventType;
    }
    public void setWarningLevel(String warningLevel)
    {
        this.warningLevel = warningLevel;
    }

    public String getWarningLevel()
    {
        return warningLevel;
    }
    public void setWarningLnfo(String warningLnfo)
    {
        this.warningLnfo = warningLnfo;
    }

    public String getWarningLnfo()
    {
        return warningLnfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("eventClass", getEventClass())
            .append("eventType", getEventType())
            .append("warningLevel", getWarningLevel())
            .append("warningLnfo", getWarningLnfo())
            .append("createTime", getCreateTime())
            .toString();
    }
}
